<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class UserPhoneService
 * Description:用户运营商服务实名信息模型
 * Author: Sam
 * DateTime: 2019/1/2 10:23
 *
 * @package App\Models
 * @property int $id
 * @property int $user_id 用户id
 * @property string $phone 手机号
 * @property string $service_password 运营商服务密码
 * @property string|null $credit_time 认证时间
 * @property int $credit_status 认证结果 0失败 1成功
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereCreditStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereCreditTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereServicePassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereUserId($value)
 * @mixin \Eloquent
 * @property int $code 认证code
 * @property int $task_id 任务id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereTaskId($value)
 * @property string $message 认证信息
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserPhoneService whereMessage($value)
 */
class UserPhoneService extends Model
{
    /**
     * 认证成功状态
     */
    CONST CREDIT_STATUS_SUCCESS = 1;
    /**
     * 认证失败状态
     */
    CONST CREDIT_STATUS_FAIL = 2;

    protected $guarded = ['id'];
}
